<div *ngIf="usertype==0" class="table-bg" style="background: #ef4954;height: 60px;display:flex;align-items: center;justify-content: flex-start;width: 96% !important;margin: 0 auto;border-radius:4px !important;padding-left: 16px !important;">
  <div style="display: flex;margin-right: 20px;width: 26%" *ngIf="usertype==0">
    <nz-select nzShowSearch nzAllowClear nzPlaceHolder="请选择省" style="width: 50%;margin-right: 4px" [(ngModel)]="searchBarSet.provinceName.propertyValue"
      (ngModelChange)="resetAll(true)">
      <nz-option *ngFor="let p of provinceData" [nzValue]="p" [nzLabel]="p"></nz-option>
    </nz-select>
    <nz-select nzShowSearch nzAllowClear nzPlaceHolder="请选择市" style="width: 50%;" [(ngModel)]="searchBarSet.cityName.propertyValue"
      (ngModelChange)="getSchool($event)">
      <nz-option *ngFor="let c of cityData[searchBarSet.provinceName.propertyValue]" [nzValue]="c" [nzLabel]="c"></nz-option>
    </nz-select>
  </div>
  <div style="display: flex;width: 38%">
    <nz-form-item style="margin-bottom: 0;margin-right: 4px;width: 33%" *ngIf="usertype==0">
      <nz-form-control>
        <nz-select style="width: 100%" nzAllowClear [nzPlaceHolder]="'请选择学校名称'" [(ngModel)]="searchBarSet.school.propertyValue" (ngModelChange)="getAcademe($event)"
          (nzOnSearch)="searchChange($event)" [nzServerSearch]="true" [nzNotFoundContent]="'没有对应内容'" nzShowSearch>
          <nz-option *ngFor="let list of listSchool" [nzLabel]="list.schoolName" [nzValue]="list.id"></nz-option>
        </nz-select>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item style="margin-bottom: 0;margin-right: 4px;width: 33%" *ngIf="usertype==0">
      <nz-form-control>
        <nz-select style="width: 100%" nzShowSearch nzAllowClear nzPlaceHolder="请选择学院名称" [(ngModel)]="searchBarSet.academe.propertyValue"
          (ngModelChange)="getDepartment($eveent)">
          <nz-option *ngFor="let list of listAcademe" [nzLabel]="list.academeName" [nzValue]="list.id"></nz-option>
        </nz-select>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item style="margin-bottom:0;width: 33%" *ngIf="usertype==0">
      <nz-form-control>
        <nz-select style="width: 100%" nzShowSearch nzAllowClear nzPlaceHolder="请选择系名称" [(ngModel)]="searchBarSet.department.propertyValue">
          <nz-option *ngFor="let list of listDepartment" [nzLabel]="list.collegeDepartmentName" [nzValue]="list.id"></nz-option>
        </nz-select>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item style="margin-bottom:0;width: 15%" *ngIf="usertype==1">
      <nz-form-control>
        <nz-select style="width: 100%" nzShowSearch nzAllowClear nzPlaceHolder="请选择系名称" [(ngModel)]="searchBarSet.department.propertyValue">
          <nz-option *ngFor="let list of listDepartmentadmin" [nzLabel]="list.collegeDepartmentName" [nzValue]="list.id"></nz-option>
        </nz-select>
      </nz-form-control>
    </nz-form-item>
  </div>
  <div style="margin-left: 20px" *ngIf="usertype==0">
    <input (keydown)="searchadmin($event)" nz-input placeholder="名称" [(ngModel)]="searchBarSet.searchText.propertyValue">
  </div>
  <div style="margin-left: 20px" *ngIf="usertype==1">
    <input (keydown)="searchadmin($event)" nz-input placeholder="名称" [(ngModel)]="searchBarSet.searchText.propertyValue">
  </div>

  <div style="margin-left: 20px;">
    <button (click)="search(false)" nz-button style="background: #fff;color:#aaa">搜索</button>
  </div>
  <div style="margin-left: 20px;">
    <button (click)="search(true)" nz-button style="background: #fff;color:#aaa">取消</button>
  </div>
</div>


<div *ngIf="usertype==1" class="table-bg" style="width: 96%;background: #ef4954;height: 60px;display:flex;align-items: center;justify-content: flex-start;margin: 0 auto;border-radius:4px !important;padding-left: 16px !important;">
  <div style="width: 14%">
    <nz-form-item style="margin-bottom:0;">
      <nz-form-control>
        <nz-select style="width: 100%" nzShowSearch nzAllowClear nzPlaceHolder="请选择系名称" [(ngModel)]="searchBarSetadmin.departmentadmin.propertyValue">
          <nz-option *ngFor="let list of listDepartmentadmin" [nzLabel]="list.collegeDepartmentName" [nzValue]="list.id"></nz-option>
        </nz-select>
      </nz-form-control>
    </nz-form-item>
  </div>
  <div style="margin-left: 20px" *ngIf="usertype==1">
    <input (keydown)="searchadmin($event)" nz-input placeholder="名称" [(ngModel)]="searchBarSetadmin.searchTextadmin.propertyValue">
  </div>

  <div style="margin-left: 20px;">
    <button (click)="search(false)" nz-button style="background: #fff;color:#aaa">搜索</button>
  </div>
  <div style="margin-left: 20px;">
    <button (click)="search(true)" nz-button style="background: #fff;color:#aaa">取消</button>
  </div>
</div>
